package com.awanp3.nimbus.base.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.awanp3.nimbus.base.domain.BasePlant;
import com.awanp3.nimbus.common.excel.annotation.ExcelDictFormat;
import com.awanp3.nimbus.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 工厂信息视图对象 base_plant
 *
 * @author 20014170
 * @date 2025-08-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BasePlant.class)
public class BasePlantVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 工厂ID
     */
    @ExcelProperty(value = "工厂ID")
    private Long plantId;

    /**
     * 工厂编码
     */
    @ExcelProperty(value = "工厂编码")
    private String plantCode;

    /**
     * 工厂名称
     */
    @ExcelProperty(value = "工厂名称")
    private String plantName;

    /**
     * 工厂类型（FG成品 SFG半成品 SP备件）
     */
    @ExcelProperty(value = "工厂类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "F=G成品,S=FG半成品,S=P备件")
    private String plantType;

    /**
     * 公司编码
     */
    @ExcelProperty(value = "公司编码")
    private String companyCode;

    /**
     * 电话
     */
    @ExcelProperty(value = "电话")
    private String phone;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "部门状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

}
